// 定义用户相关的ts类型
// 用户登录接口入参定义
export interface LoginFormData {
    username: string;
    password: string;
}

// 定义后端接口响应对象 ts类型
export interface ResponseData {
    code: number;
    message: string;
    ok: boolean
}

// 定义登录接口响应对象 ts类型
export interface LoginResponseData extends ResponseData {
    data: {
        token: string;
    };
    // data:string
}

// 定义用户信息接口响应对象 ts类型
export interface UserInfoResponseData extends ResponseData {
    data: {
        userId: number;
        username: string;
        avatar: string;
        desc: string;
        roles: string[];
        buttons: string[];
        routes: string[];
    };
}
// 定义用户列表接口响应对象 ts类型
export interface UserListResponseData extends ResponseData {
    data: {
        userId: number;
        username: string;
        avatar: string;
        desc: string;
        roles: string[];
        buttons: string[];
        routes: string[];
        token: string;
    }[];
}